from random import randint
maxTimes=0
def guess (maxValue=100,maxTimes=5):
    value = randint(1,maxValue)
    for i in range(maxTimes):
       prompt='Start to GUESS:'if i==0 else 'GUESS again:'
       try:
            x=int(input(prompt))
       except:
            print('Must input an inter between 1 and ',maxValue)

       else :
            if x==value:
                print('Congratulations!')
            elif x>value:
                print('Too big')
            else:
                print('Too little')

    else:
       print('Game over.FAIL.')
       print('The value is',value)

guess()